package com.business.dynamic.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 内容模板表 实体类
 * @author chenjiehong
 * @date 2019-11-29 15:15:38
 * @since 1.0
 */
@TableName(value = "dynamic_content_template")
public class DynamicContentTemplate{

    // columns START

	@TableId(value = "id",type=IdType.AUTO)
	private Integer id; 

	/**
	 * 模板名称
	 */
	private String title; 

	/**
	 * 模板描述
	 */
	private String description; 

	/**
	 * 模板内容 富文本
	 */
	private String content; 

	/**
	 * 类型
	 */
	private Integer type; 

	/**
	 * 夫行业类别编码
	 */
	@TableField(value = "parent_category_code")
	private String parentCategoryCode; 

	/**
	 * 夫行业类别名称
	 */
	@TableField(value = "parent_category_name")
	private String parentCategoryName; 

	/**
	 * 子行业类别名称
	 */
	@TableField(value = "sub_category_name")
	private String subCategoryName; 

	/**
	 * 子行业类别编码
	 */
	@TableField(value = "sub_category_code")
	private String subCategoryCode; 

	/**
	 * 是否默认
	 */
	@TableField(value = "is_default")
	private Integer isDefault;

	/**
	 * 0：所有用户可用 1：会员可用 2：收费
	 */
	private Integer level; 
	// columns END

	public Integer getId() {
		return id;
	}

    public void setId(Integer id) {
    	this.id = id;
    }
	public String getTitle() {
		return title;
	}

    public void setTitle(String title) {
    	this.title = title;
    }
	public String getDescription() {
		return description;
	}

    public void setDescription(String description) {
    	this.description = description;
    }
	public String getContent() {
		return content;
	}

    public void setContent(String content) {
    	this.content = content;
    }
	public Integer getType() {
		return type;
	}

    public void setType(Integer type) {
    	this.type = type;
    }
	public String getParentCategoryCode() {
		return parentCategoryCode;
	}

    public void setParentCategoryCode(String parentCategoryCode) {
    	this.parentCategoryCode = parentCategoryCode;
    }
	public String getParentCategoryName() {
		return parentCategoryName;
	}

    public void setParentCategoryName(String parentCategoryName) {
    	this.parentCategoryName = parentCategoryName;
    }
	public String getSubCategoryName() {
		return subCategoryName;
	}

    public void setSubCategoryName(String subCategoryName) {
    	this.subCategoryName = subCategoryName;
    }
	public String getSubCategoryCode() {
		return subCategoryCode;
	}

    public void setSubCategoryCode(String subCategoryCode) {
    	this.subCategoryCode = subCategoryCode;
    }

	public Integer getIsDefault() {
		return isDefault;
	}

	public void setIsDefault(Integer isDefault) {
		this.isDefault = isDefault;
	}

	public Integer getLevel() {
		return level;
	}

    public void setLevel(Integer level) {
    	this.level = level;
    }
	
	@Override
	public String toString() {
		String log = ""; 
		log += "[id:" + getId() + "]";
		log += "[title:" + getTitle() + "]";
		log += "[description:" + getDescription() + "]";
		log += "[content:" + getContent() + "]";
		log += "[type:" + getType() + "]";
		log += "[parentCategoryCode:" + getParentCategoryCode() + "]";
		log += "[parentCategoryName:" + getParentCategoryName() + "]";
		log += "[subCategoryName:" + getSubCategoryName() + "]";
		log += "[subCategoryCode:" + getSubCategoryCode() + "]";
		log += "[isDefault:" + getIsDefault() + "]";
		log += "[level:" + getLevel() + "]";
		return log;
	}
}